#!/bin/sh

py_ver=$(python --version 2> /dev/null | sed -n '/Python 3/p')
py3_ver=$(python3 --version 2> /dev/null | sed -n '/Python 3/p')

if [ ! -n "$py_ver" ]; then
    if [ ! -n "$py3_ver" ]; then
        echo "! No Python3.x found in system environment."
    else
        python3 main.py python3 $*
    fi
else
    python main.py python $*
fi
